package org.x.commonmod.enums;

import com.mybatisflex.annotation.EnumValue;
import org.x.commonmod.DescEnum;


public enum MaterialType implements DescEnum {
    ID_CARD("身份证", 1),
    EVIDENCE("证据", 2),
    CONTRACT("合同", 3),
    OTHER("其他", 4);


    private final String desc;
    private final Integer code;

    MaterialType(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }

    @EnumValue
    public String getName(){
        return name();
    }

    @Override
    public String getDesc() {
        return this.desc;
    }
}
